package cn.wolfcode.luowowo.acticle.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class CityScenicDetail extends BaseDomain {


    private String title;//景点标题

    private String coverUrl;//背景图

    private String[] coverUrls;//景点图片

    private Date lastUpdateTime;//最后更新时间

    private Integer replynum;//评论数

    private Integer favornum;//收藏数

    private Integer hasbeen;//去过

    private String tel;//电话号码

    private String net;//网址

    private String content;//内容

    private String traffic;//交通

    private String openTime;//开放时间

    private List<CityScenicDetail> children = new ArrayList<>();//关联的子景点

    private  int refId;//关联地区的id


    //从数据库拿出的图片字符转分割成换成string数组,方便做页面图片回显;
    public String[] getCoverUrls() {
        String[] coverUrls = coverUrl.split(",");
        return  coverUrls;
    }


}